<template>
	<view class="wrap">
		<view class="kefu-wrap" v-for="(item,index) in dataList" :key="index">
			<view class="img-wrap">
				<image :src="item.image_url" mode=""></image>
			</view>
			<view class="desc">
				{{item.name}}
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList:[]
			}
		},
		onShow() {
			//this.getData()
		},
		onLoad() {
			this.getData()
		},
		methods: {
			getData(){
				let that=this
				that.apipost('/api/user/customer').then(res => {
					if(res.Code==10200){
						
						let data=res.Data
						that.dataList=data
					}
					
				}).catch(err=>{
					console.log(err)
				});
			}
		}
	}
</script>

<style>
	.desc{
		width:460rpx;
		height:64rpx;
		background:#fff;
		margin:0 auto;
		border-radius:40rpx;
		color:#006af8;
		display:flex;
		align-items: center;
		justify-content: center;
		margin-top:40rpx;
	}
	.img-wrap{
		width:246rpx;
		height:246rpx;
		margin:0 auto;
		
		background:#fff;
	}
	.kefu-wrap{
		box-sizing: border-box;
		margin:0 auto;
		width:632rpx;
		height:430rpx;
		margin-top:30rpx;
		background:#4769f1;
		padding-top:56rpx;
	}
	.wrap{
		height:100%;
		background:#fdfdfd;
		overflow: hidden;
	}
</style>
